use Test::More 'no_plan';

use lib "../lib/cpp", "../lib/ioc", "../lib/toolkit", '../lib/message';
use TinyMessage;
use CPreprocess;

my @canonized = CPreprocess::canonize(\*DATA);

my @answer = (
'#include "A"',
'#include "B"',
'namespace a {',
'namespace b {',
'a;',
'b;',
'c;',
'class A :public B < D < C > > {',
'}',
'}',
'}');


is_deeply(\@canonized, \@answer);

__DATA__
#include "A"
#include "B"
namespace   a   { namespace b {
	
	
	a;b;c;// a {}
	
	class A /* ho -ho
	*asd */ :public /*asdsa 
	axasdwd */ B<  D<  
	 C > > 
	{
		
		
	}

} }